package com.gvfish.entity;

import java.util.Set;

import javax.jdo.annotations.Persistent;
import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;

/**
 * 
 * @author ydy
 *
 */
@Entity
public class Role {
	//~ Instance fields ================================================================================================
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	
	@Basic
	private String name;
	@Basic
	private String displayName;

	@Basic
	private Set<Key> authorityKeys;
	//~ Constructors ===================================================================================================

	
	
	//~ Methods ========================================================================================================
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	public String getDisplayName() {
		return displayName;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public void setAuthorityKeys(Set<Key> authorityKeys) {
		this.authorityKeys = authorityKeys;
	}
	public Set<Key> getAuthorityKeys() {
		return authorityKeys;
	}
	
	
}
